﻿using Asp.Versioning;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp;

namespace Himp.TaskScheduling.V1
{
    [Area(TaskSchedulingRemoteServiceConsts.ModuleName)]
    [RemoteService(Name = TaskSchedulingRemoteServiceConsts.RemoteServiceName)]
    [Route("api/taskScheduling/sampleDiscardedTask")]
    [ApiVersion("1.0")]
    [ApiController]
    [ControllerName("sampleDiscardedTask")]
    public class SampleDiscardedTaskController : TaskSchedulingController
    {
        private ISampleDiscardedTaskService _sampleDiscardedTaskService;

        public SampleDiscardedTaskController(ISampleDiscardedTaskService sampleDiscardedTaskService)
        {
            _sampleDiscardedTaskService = sampleDiscardedTaskService;
        }

        [HttpPost]
        public async Task<SampleTestTaskDto> PostAsync([FromBody]SampleDiscardedTaskCreateDto input)
        {
            return await _sampleDiscardedTaskService.Post(input);
        }
    }
}
